#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Author: renjin@bit.edu.cn
# @Date  : 2024-08-06

import re
import setuptools
import glob
import os


with open("spirecv/__init__.py", "r") as f:
    version = re.search(
        r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
        f.read(), re.MULTILINE
    ).group(1)


with open("README.md", "r", encoding="utf-8") as f:
    long_description = f.read()


def get_package_data():
    data = []
    return {'spirecv': data}


setuptools.setup(
    name="spirecv",
    version=version,
    author="amov",
    author_email="jariof@foxmail.com",
    python_requires=">=3.8",
    long_description=long_description,
    long_description_content_type='text/markdown',
    classifiers=["Programming Language :: Python :: 3", "Operating System :: OS Independent"],
    package_dir={'spirecv': 'spirecv'},
    package_data=get_package_data(),
    packages=setuptools.find_packages(),
    entry_points={
        'console_scripts': [
            'smsrun=spirecv.run:main',
        ],
    },
    install_requires=("numpy", "opencv-python"),
)
